package defpackage; import cn.wps.show.app.KmoPresentation; import java.util.ArrayList; import java.util.List; /* renamed from: uuf reason: default package */ public final class uuf { public KmoPresentation uWr; public tra vEn; public cls vMK; public uuf(tra tra, cls cls) { this.uWr = tra.uTJ; this.vEn = tra; this.vMK = cls; } private static void a(coj coj, List<Long> list, List<String> list2) { coj.N("p", "sldLayoutIdLst"); if (list.size() == list2.size()) { for (int i = 0; i < list.size(); i++) { coj.N("p", "sldLayoutId"); coj.c("id", list.get(i).longValue()); coj.h("r", "id", list2.get(i)); coj.O("p", "sldLayoutId"); } } coj.O("p", "sldLayoutIdLst"); } public void a(cls cls, tra tra, List<String> list, uui uui) { col col = new col(uul.a(cls)); col.startDocument(); col.N("p", "sldMaster"); col.M("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); col.M("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); col.M("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); twn W = twn.W(tra.Jy()); if (W.fyO()) { col.i("preserve", W.fqK()); } new usp(tra.uVV, this.uWr.uTy.IR(), uui).a(col); uso.a(col, W.fwZ(), "p", "clrMap"); ArrayList arrayList = new ArrayList(); for (int i = 0; i < tra.fqG(); i++) { arrayList.add(Long.valueOf(tra.ajE(i).id)); } a(col, arrayList, list); if (W.fyH()) { new utm(W.fyG(), uui).a(col); } if (W.fyF()) { new utk(W.fyE(), uui).a(col); } if (W.fyD()) { usr.a(col, W.fyC()); } if (W.fyU() || W.fyS() || W.fyT()) { col.N("p", "txStyles"); if (W.fyU()) { new bbf(W.fqJ(), "p", "titleStyle", uui).a(col); } if (W.fyS()) { new bbf(W.fqH(), "p", "bodyStyle", uui).a(col); } if (W.fyT()) { new bbf(W.fqI(), "p", "otherStyle", uui).a(col); } col.O("p", "txStyles"); } col.O("p", "sldMaster"); col.endDocument(); } }